﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Basic4Net.BasicItem
{
    public class ErrorInfo : IDisposable
    {
        public enum SystemModel 
        { 
            Assets,
            BaseService,
            Car,
            Library,
            Mail,
            OfficeSupply,
            PublicInfo
        }

        private SystemModel _SetSystemModel;

        public SystemModel SetSystemModel
        {
            get 
            {
                return _SetSystemModel;
            
            }
            set             
            {
                _SetSystemModel = value;
            }
        
        }

        public string GetErrorInfo(int ErrorNum)
        {
            switch (_SetSystemModel)
            {
                case SystemModel.Assets:

                    switch (ErrorNum)
                    { 
                        case 10001:
                            return "数据加载错误";
                        default:
                            return "未知错误";
                    }

                    break;
                case SystemModel.BaseService:
                    break;
                case SystemModel.Car:
                    break;
                case SystemModel.Library:
                    break;
                case SystemModel.Mail:
                    break;
                case SystemModel.OfficeSupply:
                    break;
                case SystemModel.PublicInfo:
                    break;
                default:
                    return "未知错误";

            }

            return "";
        
        
        }



        #region IDisposable 成员

        public void Dispose()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
